package cn.zero.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.zero.model.Platform;
import cn.zero.repository.PlatformRepository;
import cn.zero.service.PlatformService;

@Service("platformService")
public class PlatformServiceImpl implements PlatformService {

	@Autowired
	private PlatformRepository platformRepository;
	
	@Override
	@Transactional(readOnly = true)
	public Platform get(Long id) {
		return platformRepository.findOne(id);
	}

}
